import request from "../commonUtils";

/**
 * 登录
 * @param {*} data
 * @returns
 */
export const loginById = (data) => {
  return request({
    url: "/login/doLogin",
    method: "post",
    data: data,
  });
};
/**
 * 注册
 * @param {*} data
 * @returns
 */
export const registerByUser = (data) => {
  return request({
    url: "/login/register",
    method: "post",
    data: data,
  });
};

export const logoutById = (data) => {
  return request({
    url: "/login/logout",
    method: "post",
    data: data,
  });
};
export const getUserInfoById = (data) => {
  return request({
    url: "/user/info",
    method: "get",
    data: data,
  });
};
export const getRecharge = (data) => {
  return request({
    url: "/login/recharge",
    method: "post",
    data: data,
  });
};
export const gePay = (data) => {
  return request({
    url: "/login/pay",
    method: "post",
    data: data,
  });
};
export const gePayInfo = (data) => {
  return request({
    url: "/login/payInfo",
    method: "post",
    data: data,
  });
};
